package assignment1;

/**
 *
 * @author jc198809
 */
public class Inventory {
    public void set_data(String name, int quantity){
        itemName = name;
        itemQuantity = quantity;
    }

    public void set_link(Inventory new_link){
        nextItem = new_link;
    }

    public String getItemName(){
        return itemName;
    }

    public int getItemQuantity(){
        return itemQuantity;
    }


    private String itemName;
    private int itemQuantity;
    private Inventory nextItem = null;
}
